<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
request.setAttribute("basePath", basePath);
String opNumberInfoJson= (String)request.getAttribute("opNumberInfoJson");
String success= (String)request.getAttribute("success");
%>
<link rel="stylesheet" href="${basePath}/assets/bootstrap/css/bootstrap.css"/>    
<link rel="stylesheet" href="${basePath}/assets/css/medical_record/home_page.css"/>
<link rel="stylesheet" href="${basePath}/assets/css/basic.css"/>
<link rel="stylesheet" href="${basePath}/assets/jquery-ui/jquery-ui.css"/>


<script type="text/javascript" src="${basePath}/assets/js/jquery/jquery.min.js"></script>
<script type="text/javascript" src="${basePath}/assets/bootstrap/js/bootstrap.js"></script>
<script type="text/javascript" src="${basePath}/assets/jquery-ui/jquery-ui.js"></script>
<script type="text/javascript" src="${basePath}/assets/layer/layer.js"></script>
<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<script type="text/javascript" src="${basePath}/assets/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="${basePath}assets/js/echarts.js"></script>
<input type="hidden" id="basePath" value="${basePath }">
<form  id="infoListForm">
<input type="hidden" id="month" name="month" value="${month}">
<table style="width:100%;" cellpadding="0" cellspacing="0" id="table">
<tbody>

	<tr>
		<td colspan="6" style="text-align:right;">
			<input type="button" value="保存" class="btn"  onclick="saveAvgInHospDaysInfo()"/>
		</td>
	</tr>

	
				<tr>
				<td class="tdLabel_7 ">${nowMonth}平均住院天数</td>
				<td class="tdLabel_8">
					<input type="text" name="monthInHospDays"  value="${avgInHospDaysInfo.monthInHospDays}"    title='' />
				</td>
				<td class="tdLabel_7">${preYearMonth}平均住院天数</td>
				<td class="tdLabel_8">
					<input type="text" name="lastYearInHospDays"  value="${avgInHospDaysInfo.lastYearInHospDays}" />	
				</td>

			
	
				
				<td class="tdLabel_7">${preMonth}平均住院天数</td>
				<td class="tdLabel_8">
					<input type="text" name="preMonthInHospDays" value="${avgInHospDaysInfo.preMonthInHospDays}" />
				</td>
				
				</tr>
				
				<tr >
				 <td class="tdLabel_7">
				 	文本
				 </td>
				<td class="tdLabel_8" style="width:990px" colspan="5">
					<textarea style="width:97%;height:100px" name="text">${avgInHospDaysInfo.text}</textarea>
				</td>
			</tr>
			
				<tr >
				 <td class="tdLabel_7">
				 	说明
				 </td>
				<td class="tdLabel_8" style="width:990px" colspan="5">
					<textarea style="width:97%;height:100px" id="note" name="note">${avgInHospDaysInfo.note}</textarea>
				</td>
			</tr>
			
			
			
		</tbody>
</table>
	

</form>






<script>

       //保存
     function saveAvgInHospDaysInfo(){
	  
    	 var params = $("#infoListForm").serializeArray();
	    $.ajax({
	        type:"post",
	         data:params,
	         url:"${basePath}/report/saveAvgInHospDaysInfo",
             success:function(data){
            	 layer.alert(data.msg,{icon:1});
             }
	    });

     }
       


 

	
</script>